﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StoreManagementSystem;
using StoreManagementSystem.DomainObjects;

namespace TesterWeb
{
    [TestFixture]
    class AisleTester
    {
        [Test]
        public void CreateAisle()
        {
            Aisle chips = new Aisle();
            Assert.AreEqual(chips.id, 0);
            chips.Name = "Chips";
            Assert.AreEqual("Chips", chips.Name);
            //Aisle chips2 = new Aisle("Chips2");
            //Assert.AreEqual("Chips2", chips2.Name);
        }

        [Test]
        public void AddCategory()
        {
            Aisle chips = new Aisle();
            Category cat = new Category();
            Assert.AreEqual(true, chips.AddCategory(cat));
        }

        [Test]
        public void DeleteProduct()
        {
            Aisle chips = new Aisle();
            Category cat = new Category();
            Assert.AreEqual(true, chips.DeleteCategory(cat));
        }
    }
}
